<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>homework02</title>
    <style>
        #card{
            width: 375px;
            height: 376px;
            background-color: #e8e8e8;
            overflow: hidden; /*  结界 */
            background-image: url("../img/computer2.png");
            background-size: 292px,232px;
            background-repeat: no-repeat;
            background-position: 75px 130px;
        }
        #card>div{
            width: 245px;
            height: 232px;
            margin-top: 39px;
            margin-left: 25px;
        }
        #text1{
            color: #333;
            font-size: 32px;
            font-weight: lighter;
        }
        #text2{
            color: #666;
            font-size: 12px;
            font-weight: lighter;
            margin-top: 12px;
        }
        #text3{
            color: #0aa1ed;
            font-size: 24px;
            font-weight: bold;
            margin-top: 24px;
        }
        #text4{
            width: 132px;
            height: 40px;
            color: white;
            line-height: 40px;
            background-color: #0aa1ed;
            font-size: 20px;
            align-content: center;
            margin-top: 12px;
            border:2.5px solid black;

        }
    </style>
</head>
<body>
    <div id="card">
        <div>
            <span id="text1">颜值&nbsp;匡不住<br></span>
            <div id="text2">
                酷睿双核i5处理器|256GB&nbsp;SSD|&nbsp;8GB内存<br>
                英特HD显卡620含共享显卡内存
            </div>
            <div id="text3">¥6888.00</div>
            <div id="text4" align="center">查看详情</div>
        </div>
    </div>
</body>
</html>